import { useDispatch } from "react-redux";

export default function Hello() {
  const dispatch = useDispatch();

  return (
    <div>
      <h4>Hello</h4>
      <button onClick={() => dispatch({ type: "counter/increment" })}>
        Add
      </button>
    </div>
  );
}
